﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace DefeatEpidemic.Models
{
    public class Family
    {
        public Guid id { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 家庭名称（如，张三家或门牌号）
        /// </summary>
        [Display(Name = "家庭名称")]
        public string name { get; set; }
        /// <summary>
        /// 家庭地址
        /// </summary>
        [Display(Name = "家庭地址")]
        public string address { get; set; }

        /// <summary>
        /// 家庭状态，0-正常，1-有确诊人员，2-与发病人员的轨迹有交叉，3-有武汉接触史
        /// </summary>
        [Display(Name = "状态")]
        public int status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string remark { get; set; }
        [Display(Name = "创建时间")]
        public DateTime Created_at { get; set; } = DateTime.Now;
        [Display(Name = "更新时间")]
        public DateTime Updated_at { get; set; } = DateTime.Now;

        public ICollection<Member> Members { get; set; }

        //public ICollection<Record> records { get; set; }

        //public ICollection<Car> cars { get; set; }
    }
}
